﻿using CefSharp.WinForms;
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MesProjectWinform.Equipment.Form.LargeScreen
{
    /// <summary>
    /// 可视化大屏
    /// </summary>
    public partial class LargeScreenFrom : DevExpress.XtraEditors.XtraForm
    {
        public LargeScreenFrom(string url)
        {
            InitializeComponent();
            // 创建 ChromiumWebBrowser 控件
            var browser = new ChromiumWebBrowser(url);
            browser.Dock = DockStyle.Fill;

            // 添加到窗体
            this.Controls.Add(browser);
        }

        private void LargeScreenFrom_Load(object sender, EventArgs e)
        {
            this.Text = "大屏显示";
            webView21.DefaultBackgroundColor = System.Drawing.Color.White;
            webView21.Source = new Uri("http://47.110.243.157:5173");
        }
    }
}